package com.swind.fast.modules.app.halali.partner.service;

import com.swind.fast.modules.app.halali.partner.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swind.fast.modules.app.halali.partner.vo.response.CartPriceVo;
import com.swind.fast.modules.app.halali.partner.entity.OrderItem;

import com.swind.fast.modules.app.halali.partner.vo.request.OrderVo;
import com.swind.fast.modules.app.halali.partner.vo.response.OrderDetailVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.swind.fast.modules.app.halali.partner.vo.request.OrderStateVo;

import java.util.List;

/**
 * @Description: 项目
 * @Author: swind
 * @Date:   2021-11-20
 * @Version: V1.0
 */
public interface IOrderService extends IService<Order> {

    Order updateState(OrderStateVo orderInfo);

    Double getMonthlyRevenue();

    Order buildOrder(CartPriceVo cartPrice, List<OrderItem> orderItems);

    Order saveMain(CartPriceVo cartPrice, List<OrderItem> orderItems);

    Order confirm(OrderVo order);

    IPage<Order> renderPage(IPage<Order> pageList);

    OrderDetailVo getDetailById(String id);
}
